﻿using System;
using System.Runtime.Serialization;

namespace TeF
{
    /// <summary>Assert exception which is thrown when assertion is not satisfied</summary>
    [Serializable]
    public class AssertException : BaseException
    {
        protected AssertException()
        {
        }

        public AssertException(string message)
            : base(message)
        {
        }

        public AssertException(string message, params object[] args)
            : base(message, args)
        {
        }

        public AssertException(Exception innerException, string message)
            : base(message, innerException)
        {
        }

        public AssertException(Exception innerException, string message, params object[] args)
            : base(innerException, message, args)
        {
        }

        protected AssertException(SerializationInfo info, StreamingContext context) 
            : base(info, context)
        {
        }
    }
}
